/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 洪汤泽大帅哥
 * Date: 2024-11-13
 * Time: 22:44
 */
import java.util.Scanner;

public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        String string = sc.next();
        String s[] = string.split(",");
        String m[];
        for (int i = 0; i < s.length; i++) {
            String sg[] = s[i].split("/");
            System.out.print(sg[2]+";");
        }
    }
}
